﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Domain.Entities.Auditing;
using Volo.Abp.MultiTenancy;
using Volo.Abp;
using Microsoft.EntityFrameworkCore;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;

namespace Vouchers
{
    [Comment("出库单明细")]
    [Table("t_outstockvoucherdetail")]
    [Index(nameof(VoucherCode))]
    public class OutStockVoucherDetail : VoucherDetailBase
    {
        public OutStockVoucherDetail(Guid keyId)

        {
            this.Id = keyId;
        }

        public OutStockVoucherDetail()
        {

        }
        [Comment("出库数量")]
        public decimal OutCount { get; set; }
        [Comment("定数")]
        public decimal DefineCount { get; set; }
   
        [Comment("条形码")]
        [MaxLength(200)]
        public string BarCode { get; set; }

      
        [Comment("UDI编码")]
        [MaxLength(200)]
        public string UdiCode { get; set; }
        [Comment("高值唯一码")]
        [MaxLength(200)]
        public string OnlyBarCode { get; set; }
        [Comment("是否唯一码管控")]
        public bool IsBarCodeControl { get; set; } = false;
        [Comment("是否计费")]
        public bool IsCharging { get; set; }
        [Comment("是否采集")]
        public bool IsCollect { get; set; }

        [Comment("是否重点监控")]
        public bool IsMonitored { get; set; }

        [Comment("供应商ID")]
        public Guid? SupplierId { get; set; }

        [Comment("供应商名称")]
        [MaxLength(200)]
        public string SupplierName { get; set; }
    }
}
